package Bank;

public class SavingBankAccount extends BankAccount
{
	protected double	annuity;			//annuity, in dutch: Rente.
	protected String	dateOfContract;
	protected int		contractLength;
	
	public SavingBankAccount(int bankAccountID, double amount, double annuity, String dateOfContract, int contractLength)
	{
		super(bankAccountID, amount);
		this.annuity		= annuity;
		this.dateOfContract	= dateOfContract;
		this.contractLength	= contractLength;
	}
	public String toString()
	{
		return super.toString() +
	           "\nAnnuity          : " + annuity +
	           "\nDate of contract : " + dateOfContract +
		       "\nContract length  : " + contractLength;
	}
	public double getAnnuity()
	{
		return annuity;	
	}
	public String getDateOfContract()
	{
		return dateOfContract;
	}
	public int getContractLength()
	{
		return contractLength;
	}
}
